DEBUG=debug
PARSER=parser 
HTTP_SERVER=http_server  

.PHONY:all
all:$(PARSER) $(DEBUG) $(HTTP_SERVER)
$(PARSER):parser.cpp
	g++ -o $@ $^  -l boost_system -l boost_filesystem -std=c++11

$(DEBUG):debug.cpp 
	g++ -o $@ $^ -l jsoncpp -std=c++11

$(HTTP_SERVER):http_server.cpp
	g++ -o $@ $^ -l pthread -l jsoncpp -std=c++11

.PHONY:clean
clean:
	rm -f $(DEBUG) $(PARSER) $(HTTP_SERVER)
